package com.neuedu.hisboot.service.impl;

import com.neuedu.hisboot.dto.DoctorScheduleDTO;
import com.neuedu.hisboot.entity.Scheduling;
import com.neuedu.hisboot.mapper.SchedulingMapper;
import com.neuedu.hisboot.service.ISchedulingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jaun
 * @since 2025-07-04
 */
@Service
public class SchedulingServiceImpl extends ServiceImpl<SchedulingMapper, Scheduling> implements ISchedulingService {

    @Autowired
    private SchedulingMapper schedulingMapper;
    @Override
    public List<DoctorScheduleDTO> getDoctorSchedules(Integer deptId,
                                                       Integer userId,
                                                       Integer registLevelId) {
        return schedulingMapper.findDoctorSchedules(
                deptId,
                userId,
                registLevelId
        );
    }
}
